{% extends 'admin/change_form.html' %}
{% load i18n admin_urls %}
{% block submit_buttons_top %}
<div class="submit-row">
    {% if original.lockout_until %}
    <input type="submit"
           value="{% trans "Unlock Account" as tmsg %}{{tmsg|force_escape}}"
           name="_unlock"
           class="deletelink">
    {% endif %}
    <a href="{% url opts|admin_urlname:'changelist' %}"
       class="closelink">
        {% trans 'Close' as tmsg %}{{tmsg|force_escape}}
    </a>
</div>
{% endblock %}
{% block submit_buttons_bottom %}
<div class="submit-row">
    {% if original.lockout_until %}
    <p class="deletelink-box">
        <input type="submit"
               value="{% trans "Unlock Account" as tmsg %}{{tmsg|force_escape}}"
               name="_unlock"
               class="deletelink">
    </p>
    {% endif %}
    <a href="{% url opts|admin_urlname:'changelist' %}"
       class="closelink">
        {% trans 'Close' as tmsg %}{{tmsg|force_escape}}
    </a>
</div>
{% endblock %}
